﻿//右边菜单
function over(obj) {
    obj.style.color = '';
    obj.style.backgroundColor = '';
}
function out(obj) {
    obj.style.color = '';
    obj.style.backgroundColor = '';
}
function collapse(objid) {
    var obj = document.getElementById(objid);
    collapseAll();
    obj.style.display = '';
}
function collapseAll() {
    for (var i = 1; i < 300; i++) {
        var obj = document.getElementById('g_' + i.toString());
        if (obj) obj.style.display = 'none';
    }
}
function expandAll() {
    for (var i = 1; i < 300; i++) {
        var obj = document.getElementById('g_' + i.toString());
        if (obj) obj.style.display = '';
    }
} 